package person;
import mianji.zhu;
public class yuan {
	zhu c;
	static double h;
	double p = 3.14;

	yuan(double r, double H) {
		h = H;
		c = new zhu(r);
	}
	
	public double area() {
		double v = c.getarea()*h;
		return v;
	}
	
	public double volume() {
		double v = c.getarea()*2+c.r*2*p*h;
		return v;
	}
	
	
	public double getarea() {
		double s = c.getarea() + p * c.r * Math.sqrt(h * h + c.r * c.r);
		return s;
	}

	public double getvolume() {
		double v =  ( h * c.r*c.r*p)/3;
		return v;
	}

}
 